﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageManage.aspx.cs" Inherits="YunCMS.Web.Admin.Module.PageManage" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../Styles/reset.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" />
    <link href="../../Styles/site.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../../Scripts/messages_zh.js" type="text/javascript"></script>
    <script src="../../Scripts/init-edit.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="editarea">
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">基本信息</a></li>
                <li><a href="#tabs-2">扩展信息</a></li>
            </ul>
            <div id="tabs-1">
                <table width="100%" class="edittable">
                    <colgroup>
                        <col width="10%" class="ui-state-default" />
                    </colgroup>
                    <tbody>
                        <tr>
                            <th>
                                <span>所属模块</span>
                            </th>
                            <td>
                                <asp:DropDownList ID="categoryDDL" CssClass="yc-dropdown" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <span>标题名称</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" ID="TitleTB" CssClass="yc-textbox required" MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <span>文章作者</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" ID="AuthorTB" CssClass="yc-textbox"  MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <span>描述文字</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" ID="DescriptionTB" TextMode="MultiLine" CssClass="yc-textbox"
                                    Rows="5"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <span>文章内容</span>
                            </th>
                            <td>
                                <CKEditor:CKEditorControl ID="ContentTB" Toolbar="Full" BasePath="~/ckeditor" runat="server"></CKEditor:CKEditorControl>
                            </td>
                        </tr>
                        </tbody>
                </table>
            </div>
            <div id="tabs-2">
                <table width="100%" class="edittable">
                    <colgroup>
                        <col width="10%" class="ui-state-default" />
                    </colgroup>
                    <tbody>
                        <tr>
                            <th>
                                <span>关键词</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" CssClass="yc-textbox" ID="KeywordsTB" MaxLength="10"></asp:TextBox>用“，”隔开
                            </td>
                        </tr>                      
                        <tr>
                            <th>
                                <span>推荐类型</span>
                            </th>
                            <td>
                                <asp:CheckBox runat="server" ID="IsHomePageCB" Text="置顶"></asp:CheckBox>&nbsp;<asp:CheckBox runat="server" ID="IsPopularCB" Text="推荐"></asp:CheckBox>
                            </td>
                        </tr>
                        <%--<tr>
                            <th>
                                <span>Access</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" ID="AccessTB" CssClass="yc-textbox number"></asp:TextBox>
                            </td>
                        </tr>--%>
                        <tr>
                            <th>
                                <span>图片链接</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" CssClass="yc-textbox" ID="ImageUrlTB" Rows="5"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <span>外链地址</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" ID="HtmlPageUrlTB" CssClass="yc-textbox" Rows="5"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <span>赞成人数</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" ID="DiggTopTB" CssClass="yc-textbox number"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <th>
                                <span>反对人数</span>
                            </th>
                            <td>
                                <asp:TextBox runat="server" ID="DiggStepTB" CssClass="yc-textbox number"></asp:TextBox>
                            </td>
                        </tr>                        
                       <%-- <tr>
                            <th>
                                <span>Active</span>
                            </th>
                            <td>
                                <asp:CheckBox ID="ActiveCB" runat="server" Checked="true" />
                            </td>
                        </tr>--%>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="foot-bar" style='text-align: center;'>
            <asp:LinkButton ID="saveBt" runat="server" Text="Insert" OnClick="saveBt_Click"></asp:LinkButton>
            <button id="cancelBt" type="reset">
                重置</button>
        </div>
    </div>
    </form>
</body>
</html>
